package com.zhongc.advance.order;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Version 1.0
 * @Author zhongc
 * @Email zhong_ch@foxmail.com
 * @History <li>Author: zhongc</li>
 * <li>Date: 2015-07-28</li>
 * <li>Version: 1.0</li>
 * <li>Content: create</li>
 */
public class RoleAddOrder implements Serializable{
    private static final long serialVersionUID = -3836051953900595434L;

    /** 角色名称 */
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    /** 备注 */
    private String note;

    /** 创建时间 */
    @NotNull(message = "创建时间不能为空")
    private Date createTime;

    /** 备用字段 */
    private String def1;

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDef1() {
        return def1;
    }

    public void setDef1(String def1) {
        this.def1 = def1;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleName='" + roleName + '\'' +
                ", note='" + note + '\'' +
                ", createTime=" + createTime +
                ", def1='" + def1 + '\'' +
                '}';
    }
}
